import { useTextList } from '@/api/textApi'
import useTextPinia from '@/stores/models/useTextPinia'

const textPinia = useTextPinia()

// 每次个人数据改动后就调用他
const xuanRanTextList  = async () =>{
  // console.log('111myInformationPinia.myInformation.value',myInformationPinia.myInformation.value)
  const res = await useTextList()
  console.log('res',res)
  const obj = textPinia.updateTextList(res)
  console.log('个人信息更新，获取到个人信息的结果',obj)
  return obj
}

export default xuanRanTextList 